package com.honghu.villagepost.adapter

import com.honghu.villagepost.R
import com.honghu.villagepost.entity.Image
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder

/**
 * @author: mqwang
 * @create: 1/27/21 2:03 PM
 * @Description:
 */
class GoodsImageAdapter : BaseQuickAdapter<Image, BaseViewHolder>(R.layout.adapter_image) {
    override fun convert(helper: BaseViewHolder?, item: Image) {
        Glide.with(mContext).load(item.url).into(helper!!.getView(R.id.iv_image))

    }
}